/**
 * \file dunLexer.h
 * \brief The lexer of the file format *.dj
 * \author Panos Baroudjian
**/

#ifndef DUNLEXER_H_
# define DUNLEXER_H_

# include <string.h>
# include <stdlib.h>
# include <stdio.h>
# include "dunQueue.h"

typedef struct s_lex
{
	int num_tokens;
	char tokens[10000000], *current_token;
	dunQueue token_q;
} *t_lex;

t_lex 	lexerCreate(void);

void	lexerSplit(t_lex lex, char* s, char* delim);

char* 	lexerGetToken(t_lex lex);

int		lexerGetTokenAsInt(t_lex lex);

#endif /* !DUNLEXER_H_ */
